package com.zpy.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user")
public class User {
    @TableId
    private Integer id;
    private String email;
    private String password;
    private String username;
    private String realName;
    private String address;
    private String phone;
    private String sex;
    private String image;
    private String number;
    private Integer isregister;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Date loginTime;
    private Integer status;
    @TableField(exist = false)
    private String role;
    private String unit;//所属单位
}
